const common = require('../../utils/common');
const env = require('../../utils/env');
const wxp = require('../../utils/wxp.js');

Page({
  navigateToMiniProgram: function () {
    wxp.navigateToMiniProgram({
      appId: env.cAppIdKey,
      path: 'pages/tobeTzFirstStep/tobeTzFirstStep',
      envVersion: env.status == 0 ? 'trial' : 'release'
    }).then(res => {
      common.log("打开小程序成功")
    }).catch(err => {});
  }
})
